//
//  MYAudioManager.h
//  JQLive
//
//  Created by Bruce on 2020/7/16.
//  Copyright © 2020 mlqk. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MYAudioModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface MYAudioManager : NSObject
//设置单例
+ (MYAudioManager *)sharedManager;

/// 检测本地是否有这个音乐文件
/// @param model 音乐model
- (BOOL)checkIsDownloaded:(MYAudioModel *)model;

/// 下载MP3
/// @param model 下载model
/// @index 进来的下标
/// @param block 下载成功回调
- (void)downLoad:(MYAudioModel *)model  withIndex:(NSInteger)index
    successBlock:(void (^)(NSInteger index))block;
@end

NS_ASSUME_NONNULL_END
